import 'package:easy_refresh/easy_refresh.dart';

mixin RefreshMixin {
  EasyRefreshController controller = EasyRefreshController(
    controlFinishRefresh: true,
    controlFinishLoad: true,
  );

  Future<void> onRefresh() async {
    controller.finishRefresh(IndicatorResult.success);
  }

  Future<void> onLoad() async {
    controller.finishLoad(IndicatorResult.success);
  }
}
